﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FantasyBlog.BLL
{
    public static class ProviderAFactory
    {
        public static IPostProvider OpenPostProvider
        {
            get
            {
                return new PostProvider();
            }
        }

        public static SiteMetadataProvider SiteMetaData
        {
            get
            {
                if (siteProvider == null)
                    siteProvider = new SiteMetadataProvider();
                return siteProvider;
            }

        }

        public static CommentsProvider CommentProvider
        {
            get
            {
                return new CommentsProvider();
            }
        }
        static SiteMetadataProvider siteProvider = null;
    }
}
